package com.shop.user;

import com.github.pagehelper.PageInfo;
import com.shop.user.pojo.User;
import com.shop.user.service.UserService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.List;

/**
 * @ClassName: Test
 * @description：
 * @author：TanKai
 * @date：2021/7/23 10:25
 * @versions：v1.0
 */
public class Test {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("applicationconfig.xml");
        UserService bean = context.getBean(UserService.class);
        bean.sel("123").forEach(System.out::println);
    }
}
